<?php
/*
+ ----------------------------------------------------------------------------------------------+
|     e107 website system  : http://e107.org.ru
|     Released under the terms and conditions of the GNU General Public License (http://gnu.org).
|
|     $Date: 2007/03/22 $
|     $Author: Alex ANP alex-anp@ya.ru $
+-----------------------------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }

if ($pref['hs_image_on'] or $pref['hs_iframe_on']) {

echo "<script type='text/javascript' src='".e_PLUGIN."eHighSlide/highslide/highslide.js'></script>\n";
//echo "<script type='text/javascript' src='".e_PLUGIN."eHighSlide/highslide/highslide-html.js'></script>\n";

$text = array("
<!-- ======== #0 white-10px ============ -->
<script type='text/javascript'>
    hs.graphicsDir = '".e_PLUGIN."eHighSlide/highslide/graphics/';
    hs.objectLoadTime = 'after';
</script>
<link href='".e_PLUGIN."eHighSlide/css/white-10px.css' rel='styleSheet' type='text/css'>
", "
<!-- ======== #1 no-border ========== -->
<script type='text/javascript'>
    hs.graphicsDir = '".e_PLUGIN."eHighSlide/highslide/graphics/';
</script>
<link href='".e_PLUGIN."eHighSlide/css/no-border.css' rel='styleSheet' type='text/css'>
", "
<!-- =========== #2 outer-glow =========== -->
<script type='text/javascript'>
    hs.graphicsDir = '".e_PLUGIN."eHighSlide/highslide/graphics/';
    hs.outlineType = 'outer-glow';
</script>
<link href='".e_PLUGIN."eHighSlide/css/outer-glow.css' rel='styleSheet' type='text/css'>
", "
<!-- ========== #3 white-rounded-outline ========= -->
<script type='text/javascript'>
    hs.graphicsDir = '".e_PLUGIN."eHighSlide/highslide/graphics/';
    hs.outlineType = 'rounded-white';
</script>
<link href='".e_PLUGIN."eHighSlide/css/white-rounded-outline.css' rel='styleSheet' type='text/css'>
", "
<!-- ======== #4 no-outline ========= -->
<script type='text/javascript'>
    hs.graphicsDir = '".e_PLUGIN."eHighSlide/highslide/graphics/';
    hs.outlineType = null;
</script>
<link href='".e_PLUGIN."eHighSlide/css/no-outline.css' rel='styleSheet' type='text/css'>
");

echo $text[$pref['hs_hs_theme']];

}

//============= Highslide JS iFrame content =====================
if ($pref['hs_iframe_on']) {
echo "<script type='text/javascript' src='".e_PLUGIN."eHighSlide/highslide/highslide-html.js'></script>\n";
echo "
<script type='text/javascript'>
    hs.outlineWhileAnimating = true;
    hs.objectLoadTime = 'after';
</script>
<link href='".e_PLUGIN."eHighSlide/css/hs_iframe_on.css' rel='styleSheet' type='text/css'>
";
}

?>